import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:largefriends/pages/lf_payment/lf_payment_logic.dart';
import 'package:largefriends/res/lf_color.dart';
import 'package:largefriends/res/lf_double_ext.dart';
import 'package:largefriends/res/strings/lf_strings.dart';

import '../../res/lf_fonts.dart';
import '../../res/lf_text_style.dart';

Widget getContactBanner({required String content}) {
  return InkWell(
    child: Container(
      margin: EdgeInsets.only(left: 10.w, bottom: 10.h, right: 10.w),
      padding: EdgeInsets.symmetric(horizontal: 10.w, vertical: 10.h),
      decoration: BoxDecoration(
          color: color210215,
          borderRadius: 10.r.radius,
          gradient: LinearGradient(
              begin: const Alignment(-1, -0.9),
              end: const Alignment(0.9, 1),
              colors: [
                colorFF007F.withAlpha(160),
                colorFF007F.withAlpha(150),
                colorFF007F.withAlpha(140),
                colorFF007F.withAlpha(150),
                colorFF007F.withAlpha(160),
                colorFF007F.withAlpha(170),
                colorFF007F.withAlpha(180),
              ])),
      child: Column(
        children: [
          Text(
            content,
            style: lfTextStyle(
                sp: 17.sp, color: colorFEFEFE, fontFamily: fontRegular),
            textAlign: TextAlign.center,
          ),
          10.h.sbh,
          Container(
            decoration: BoxDecoration(
              color: colorFEFEFE,
              borderRadius: 30.r.radius,
            ),
            padding: EdgeInsets.symmetric(vertical: 8.h, horizontal: 16.w),
            child: Text(
              strUpgrade.tr,
              style: lfTextStyle(sp: 18.sp, fontFamily: fontBoldItalic,color: color000000),
            ),
          )
        ],
      ),
    ),
    onTap: (){
      toPayment();
    },
  );
}
